@layout("/backend/common/_container.html"){
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/backend/sds/sdsqcformitem/style.css">
<div id="qcfitemtabs" class="hisui-tabs tabs-gray" data-options="fit:true,onSelect:SdsStandRuleBaseInfoDlg.changeTabs">
    <div title="规则基本信息" data-options="" style="padding: 10px" id="rulebase">
        <form method='post' id="sdsStandRuleBaseInfoForm" name="sdsStandRuleBaseInfoForm" enctype="multipart/form-data">

            <input type="hidden" id="id" name="id" value="${sdsStandRuleBase.id}"/>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">规则代码</span>
                <div class="col-sm-9">
                    <input class="textbox" style="width:95%;" id="ruleCode" name="ruleCode" type="text"
                           value="${sdsStandRuleBase.ruleCode}">
                </div>
            </div>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">规则描述</span>
                <div class="col-sm-9">
                    <input class="textbox" style="width:95%;" id="ruleDesc" name="ruleDesc" type="text"
                           value="${sdsStandRuleBase.ruleDesc}">
                </div>
            </div>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">类型</span>
                <div class="col-sm-9">
                    <select class="hisui-combobox textbox" id="ruleType" name="ruleType" style="width:545px;"
                            data-options="editable:false,multiple:false,panelHeight:'auto',selectOnNavigation:false">
                        @for (type in ruleTypeMap) {
                        @if((type.value+'')==(sdsStandRuleBase.ruleType!''+'')){
                        <option value="${type.key}" selected="selected">${type.value}</option>
                        @}else{
                        <option value="${type.value}">${type.value}</option>
                        @}
                        @}
                    </select>
                </div>
            </div>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">备注</span>
                <div class="col-sm-9">
                    <input class="textbox" style="width:95%;" id="comment" name="comment" type="text"
                           value="${sdsStandRuleBase.comment}">
                </div>
            </div>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">默认值</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="isDefault" name="isDefault" style="width:545px;"
                           value="${sdsStandRuleBase.isDefault}">
                </div>
            </div>
            <div class="row btn-margin-bottom" style="margin-right: 0px !important;margin-top: 10px">
                <span class="col-sm-1" style="margin-top:5px;text-align: right">计算类型</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="calType" name="calType" style="width:545px;"
                           value="${sdsStandRuleBase.calType}">
                </div>
            </div>
            <div class="toolbar" style="text-align: center;margin-top: 20px">
                <#Button name="保存" id="ensure" icon="icon-w-save"
                clickFun="SdsStandRuleBaseInfoDlg.editSubmit()"/>
                <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close"
                clickFun="SdsStandRuleBaseInfoDlg.close()"/>
            </div>
        </form>
    </div>
    <div title="规则运算" data-options="" style="padding:10px;" id="ruleCal">
        @include("/backend/sds/sdsstandrulebase/sdsstandrulecal.html"){}
    </div>
</div>
<script src="${ctxPath}/static/backend/sds/sdsstandrulebase/sdsstandrulebase_info.js"></script>
@}
